text = input()
text_counter = text.split()
print('Количество слов :', len(text_counter))
words_counter = 0
a = 0
words = ""
while a < len(text):
	if text[a] == " ":
		words_counter += 1
		print(words)
		words = ""
	else:
		words += text[a]
	a += 1
print(words)
print(len(text))
symbol = false
while a < len(text):
	if ord(text[a]) in range(ord('A'), ord('Z') + 1):
		symbol = true
	a += 1
print(symbol)
